package myj;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;

public class LoginAction extends ActionSupport {
    private String human;

    public String getHuman(){
        return human;
    }
    public void setHuman(String human){
        this.human = human;
    }
    public String execute() throws Exception {
        ActionContext actionContext=ActionContext.getContext();
        Map request = (Map)actionContext.get("request");
        switch (human){
           case "lzl":
               request.put("human","image/lzl.jpg");
               break;
            case "my":
                request.put("human","image/my.jpg");
                break;
            case "qd":
                request.put("human","image/qd.jpg");
                break;
            case "ylp":
                request.put("human","image/ylp.jpg");
                break;
       }
        System.out.println(human);
        return "success";
    }

}